import { useLoginStore } from '@/stores/loginStore'

function hasAuth(code: string) {
  return useLoginStore().hasAuth(code)
}

function hasAnyAuth(...codes: string[]) {
  for (let i = 0; i < codes.length; i++) {
    if (useLoginStore().hasAuth(codes[i])) {
      return true
    }
  }
  return false
}

export { hasAnyAuth, hasAuth }
